home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 October
/
PCWorld_2000-10_cd1.bin
/
Software
/
Vyzkuste
/
tiptrik
/
tiptrik.exe
/
soubory pro pcw 10 - æikovn¡ pomocn¡ci pro vaçe Windows
/
skripty
/
Komentar.bas
< prev
next >
Wrap
BASIC Source File
|
2000-08-18
|
579b
|
32 lines
Attribute VB_Name = "Komentar"
Function FinT(Bunka)
FinT = Bunka.FormulaLocal
End Function
Sub Komentar()
On Error GoTo ErrorHandler
Application.ScreenUpdating = False
For Each c In Selection
If c.HasFormula = True Then
f = FinT(c)
c.AddComment f
Else
c.Comment.Delete
End If
Next
Exit Sub
ErrorHandler:
Select Case Err.Number
Case 1004
c.Comment.Delete
Case 91
Resume Next
End Select
Resume
Application.ScreenUpdating = True
End Sub